import Vue from 'vue'
import Router from 'vue-router'
import Productdetail from '@/pages/productdetail.vue'
import customerService from "@/pages/customerService.vue"
import Home from '@/pages/home.vue'
import serviceDetail from '@/pages/serviceDetail.vue'
import serviceType from '@/pages/serviceType.vue'
import afterSaleStep from '@/pages/afterSaleStep.vue'
import afterSaleEvaluation from '@/pages/afterSaleEvaluation.vue'

Vue.use(Router)

export default new Router({
  routes: [
    // {
    //   path: '/',
    //   name: 'Home',
    //   component: Home,
    //   meta: {
    //     title: '首页'
    //   }
    // },
    {
      path: '/productdetail',
      name: 'Productdetail',
      component: Productdetail,
      meta: {
        title: '商品详情'
      }
    },
    {
      path: '/',
      name: 'customerService',
      component: customerService,
      meta: {
        title: '选择售后类型'
      }
    },
    {
      path: '/serviceDetail',
      name: 'serviceDetail',
      component: serviceDetail,
      meta: {
        title: '售后详情'
      }
    },
    {
      path: '/serviceType',
      name: 'serviceType',
      component: serviceType,
      meta: {
        title: '仅退款'
      }
    },
    {
      path: '/afterSaleStep',
      name: 'afterSaleStep',
      component: afterSaleStep,
      meta: {
        title: '售后进度'
      }
    },
    {
      path: '/afterSaleEvaluation',
      name: 'afterSaleEvaluation',
      component: afterSaleEvaluation,
      meta: {
        title: '售后评价'
      }
    },
  ]
})
